<?php
namespace app\mobile\model;

/**
 * Class MemberCoupon
 * @package app\mobile\model 会员优惠券记录
 */
class MemberCoupon extends BaseModel
{
    //会员优惠券和优惠券多对一
    public function coupon()
    {
        return $this->belongsTo('Coupon','coupon_id','id')->where('status',1)->field('id,parenTid,status');
    }
}